class MyHashSet {
private:
    bool data[1000001];
public:
    /** Initialize your data structure here. */
    MyHashSet() {
        memset(data, false, sizeof(data));
    }    

    void add(int key) {
        data[key] = true;
    }
    
    void remove(int key) {
        data[key] = false;
    }
    
    /** Returns true if this set contains the specified element */
    bool contains(int key) {
        return data[key];
    }
};

//2021.3.13 

